{extend name='admin@public/content'}

{block name="button"}

{/block}

{block name="content"}
<!-- 表单搜索 开始 -->
<form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">



    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">时 间</label>
        <div class="layui-input-inline">
            <input name="create_at" id='create_at' value="{$Think.get.create_at|default=''}" placeholder="报名时间" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        <a id="do_report" href="javascript:void (0)" data-href_url="{:request()->url()}"
           class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 导 出</a>
    </div>

</form>
<!-- 表单搜索 结束 -->

<form onsubmit="return false;" data-auto="true" method="post">
    <!--{if empty($list)}-->
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    <!--{else}-->
    <input type="hidden" value="resort" name="action">
    <table class="layui-table" lay-skin="line">
        <thead>
        <tr>
            <th class='list-table-check-td'>
                <input data-auto-none="none" data-check-target='.list-check-box' type='checkbox'/>
            </th>
            <th class='text-left'>用户</th>
            <th class='text-left'>姓名</th>
            <th class='text-left'>性别</th>
            <th class='text-left'>城市</th>
            <th class='text-left'>身高</th>
            <th class='text-left'>体重</th>
            <th class='text-left'>是否签约经纪</th>
            <th class='text-left'>组类型</th>
            <th class='text-left'>参数形式</th>
            <th class='text-left'>是否有乐器</th>
            <th class='text-left'>参数种类</th>
            <th class='text-left'>创建时间</th>
            <th></th>
        </tr>
        </thead>
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='list-table-check-td'>
                <input class="list-check-box" value='{$vo.id}' type='checkbox'/>
            </td>
            <td class='text-left nowrap'>
                <img data-tips-image class="headimg" src="{$vo.headimgurl}"/>
                {$vo.wx_name|default='<span class="color-desc">未设置微信昵称</span>'}
            </td>
            <td class='text-left nowrap'>{$vo.name|default=''}</td>

            <td class='text-left nowrap'> {$vo.sex==1?'男':($vo.sex==0?'女':'未知')}</td>
            <td class='text-left nowrap'>{$vo.province|default=''} {$vo.city|default=''} {$vo.county|default=''}</td>
            <td class='text-left nowrap'>{$vo.height|default=0}</td>
            <td class='text-left nowrap'>{$vo.weight|default=0}</td>
            <td class='text-left nowrap'> {$vo.broker==1?'是':($vo.broker==0?'否':'未知')}</td>
            <td class='text-left nowrap'>{$vo.group_type|default=''}</td>
            <td class='text-left nowrap'>{$vo.join_type|default=''}</td>
            <td class='text-left nowrap'> {$vo.is_possess_music==1?'是':($vo.is_possess_music==0?'否':'未知')}</td>
            <td class='text-left nowrap'>{$vo.match_type|default=''}</td>
            <td class='text-left nowrap'>{$vo.create_at|format_datetime}</td>

            <td class="text-center nowrap">
                <!--{if auth("$classuri/edit")}-->
                <span class="text-explode">|</span>
                <a data-title="查看详情" data-modal='{:url("$classuri/info")}?id={$vo.id}'>查看详情</a>
                <!--{/if}-->
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {if isset($page)}<p>{$page|raw}</p>{/if}
    <!--{/if}-->
</form>
{/block}

{block name="script"}
<!--表单初始化-->
<script>
    window.laydate.render({range: true, elem: '#create_at'});
    window.form.render();

    $("#do_report").on("click", function () {
        var href_url = $(this).data("href_url");
        var create_at = $("input[name='create_at']").val();
        href_url = href_url + "&is_report=1&create_at="+create_at;
        return window.location.href = href_url;
    })
</script>
<style>
    .headimg {
        width: 25px;
        height: 25px;
        border-radius: 50%;
        margin-right: 10px;
    }

    .add-tag {
        font-size: 12px;
        font-weight: 400;
        border-radius: 50%;
        color: #333;
        background: #eee;
        border: 1px solid #ddd;
    }

    .add-tag:hover {
        color: #000 !important;
        border: 1px solid #ccc;
    }

</style>
{/block}
